"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CryptoHelper = void 0;
const Logger_1 = require("./Logger");
const CryptoJS = require("crypto-js");
class CryptoHelper {
    static encrypt(str) {
        Logger_1.Logger.log("CryptoTSHelper.encrypt=11=", CryptoJS);
        let encStr = CryptoJS.AES.encrypt(str, this.publicKey).toString();
        Logger_1.Logger.log("CryptoTSHelper.encrypt==", encStr);
        return encStr;
    }
    static decrypt(str) {
        var descStr = CryptoJS.AES.decrypt(str, this.publicKey).toString(CryptoJS.enc.Utf8);
        Logger_1.Logger.log("CryptoTSHelper.decrypt==2222", descStr);
        return descStr;
    }
}
exports.CryptoHelper = CryptoHelper;
CryptoHelper.publicKey = '1kieoiwf90-*12zOp+-!afHV';
